<%-- 
    Document   : userInfo
    Created on : Sep 3, 2012, 8:51:51 PM
    Author     : phong
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <f:view>
            <a href="signList.jsp">Sign List</a>&nbsp;|&nbsp;
            <a href="viewStatic.jsp">View Static</a>&nbsp;|&nbsp;
            <a href="reportList.jsp">Report Static</a>
            <h2>User Information</h2>
            <h:form id="signLab">
                <h:panelGrid columns="2" border="1">
                    <h:outputText value="User ID:"/>
                    <h:outputText id="id" value="#{userBean.user.id}"/>
                    <h:outputText value="Create Date:"/>
                    <h:outputText id="createDate" value="#{userBean.user.createDate}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                    <h:outputText value="Name:"/>
                    <h:outputText id="name" value="#{userBean.user.name}"/> 
                    <h:outputText value="Sex:"/>
                    <h:selectOneRadio value="#{userBean.user.sex}">
                        <f:selectItem itemLabel="Male" itemValue="true"/>
                        <f:selectItem itemLabel="Female" itemValue="false"/>
                    </h:selectOneRadio>
                    <h:outputText value="BirthDay:"/>
                    <h:outputText id="dob" value="#{userBean.user.dob}"/> 
                    <h:outputText value="Phone:"/>
                    <h:outputText id="phone" value="#{userBean.user.phone}"/> 
                    <h:outputText value="Address: "/>
                    <h:inputTextarea readonly="true" id="address" value="#{userBean.user.address}"/> 
                    <h:outputText value="Email:"/>
                    <h:outputText id="email" value="#{userBean.user.email}"/> 
                </h:panelGrid>
            </h:form>   
        </f:view>
    </body>
</html>
